#include <stdlib.h>
#include<stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/input.h>
#include <unistd.h>
#include <sys/ioctl.h>
#define IRQF_TRIGGER_RISING 0x00000001



int main(int argc, char  **argv)
{
    int  fd;
    int  b,ret;
    unsigned char data =0;
    static int a = 0;

    fd = open("/dev/ioinput", O_RDWR);
    if (fd < 0)
    {
        printf("/dev/gpios open failed\n");
        exit(1);
    }
 
   char buf[8]={0x02,0x02,0x01,0xff,0x00,0xff};
       ret = write(fd,buf,6);
    if(ret==-1)
    {
       printf("write conf fail!\n");
       close(fd);
       return -1;
    }


     while(1)
	sleep(1);
     close(fd);
}
